package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.incoicings.dao.DictDataMapper;
import com.spark.incoicings.service.DictDataService;
import com.spark.invoicings.entity.DictData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
@Slf4j
public class DictDataServiceImpl extends ServiceImpl<DictDataMapper, DictData> implements DictDataService {

    @Resource
    private DictDataMapper dictDataMapper;

    @Override
    public DictData selectDictDataById(Integer id) {
        return dictDataMapper.selectDictDataById(id);
    }

    @Override
    public List<DictData> selectDictDataByType(String type) {
        return dictDataMapper.selectDictDataByType(type);
    }

}
